import Vue from "vue";
import Vuex from 'vuex'
import createVuex from 'vuex-persistedstate'

import user from './models/user'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user
  },
  plugins: [
    createVuex({
      reducer(val) {
        return {
          user: val.user
        }
      }
    })
  ]
})

export default store